<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8" />
<head th:include="include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5></h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t " id="signupForm">
							<input id="prodId" name="prodId" th:value="${prod.prodId}" type="hidden" /> <input
								id="menuIds" name="privilegeIds" type="hidden" />

							<div class="form-group">
								<label class="col-sm-3 control-label">产品名称</label>
								<div class="col-sm-3">
									<input id="prodName" name="prodName" class="form-control"
										th:value="${prod.prodName}" type="text" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">产品期限</label>
								<div class="col-sm-3">
									<input id="prodDesc" name="prodDesc"
										class="form-control" th:value="${prod.prodTypeDesc}" type="text" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">利率</label>
								<div class="col-sm-3">
									<input id="prodRate" name="prodRate" class="form-control"
										th:value="${prod.prodRate}" type="text" />
								</div>
								<label class="col-sm-1 control-label">%</label>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">定转活利率</label>
								<div class="col-sm-3">
									<input id="prodRate" name="prodAlterRate" class="form-control"
										th:value="${prod.prodAlterRate}" type="text" />
								</div>
								<label class="col-sm-1 control-label">%</label>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">募集上限（元）</label>
								<div class="col-sm-3">
									<input id="prodRaiseLimit" name="prodRaiseLimit"
										class="form-control" th:value="${prod.raiseLimitStr}" type="text" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">起购金额（元）</label>
								<div class="col-sm-3">
									<input id="prodBuyMinmonye" name="prodBuyMinmonye"
										class="form-control" type="text" th:value="${prod.buyMinAmtStr}" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">页面显示优先级</label>
								<div class="col-sm-3">
									<input id="showPriority" name="showPriority"
										class="form-control" type="text" th:value="${prod.showPriority}" />
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-3 col-sm-offset-3">
									<button type="button" class="btn btn-primary"  onclick='save()'>提交</button>
									<button type="button" class="btn btn-primary" onclick='closeThis()'>取消</button>
								</div>
								
								<div class="col-sm-3 col-sm-offset-3">
									
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::common"></div>
	<div th:include="include::footer"></div>
	<script>
		layui.use('laydate', function() {
			var laydate = layui.laydate;
			laydate.render({
				elem : '#preSaleStart',
				type : 'date'
			});
			laydate.render({
				elem : '#preSaleEnd',
				type : 'date'
			});
			laydate.render({
				elem : '#closedPeriodStart',
				type : 'date'
			});
			laydate.render({
				elem : '#closedPeriodEnd',
				type : 'date'
			});
		});
	</script>

	<script type="text/javascript"
		th:src="@{/js/appjs/trade/production/editProd.js}">
	</script>
</body>

</html>
